//
//  UserStatusNavigate.swift
//  MT
//
//  Created by M on 2019/12/24.
//  Copyright © 2019 张强. All rights reserved.
//

import UIKit

class UserStatusNavigate {
    
    private init() {
        
    }
    
    class func push(from controller: UIViewController, withUserStatus status: Int) {
        guard let navigationController = controller.navigationController else { return }
        
        switch status {
            
        /// 审核通过
        case 1:
            let vc = BaseTabBarViewController()
            UIApplication.mt_keyWindow?.rootViewController = vc
            break
            
        /// 未审核
        case 0:
            let c = MTInfoVerificationViewController()
            navigationController.pushViewController(c, animated: true)
            break
            
        /// 黑名单
        case 2:
            
            break
            
        /// 审核失败
        case 4:
            let c = MTVerificationDeniedViewController()
            navigationController.pushViewController(c, animated: true)
            break
            
        /// 已上传初始资料
        case 11:
            
//             跳转去上传视频页
            let c = MTVideoInfoController()
            navigationController.pushViewController(c, animated: true)
            
            break
    
        /// 已上传视频审核
        case 12:
            
            // 跳转去等待页
            let c = MTVerificationWaitForResultViewController()
            navigationController.pushViewController(c, animated: true)
            break
            
        default:
            break
        }
        
    }
    
    
}
